import http from "@/http";
//新增
export const addApi = (param:any) =>{
    return http.post({
        url:'/api/classroom',
        data:param
    })
}
//列表
export const getListApi = (param: any) => {
    return http.get({
        url: '/api/classroom/list',
        params: param
    })
}
//编辑
export const editApi = (param: any) => {
    return http.put({
        url: '/api/classroom',
        data: param
    })
}

//删除
export const deleteApi = (roomId:any)=>{
    return http.delete({
        url:`/api/classroom/${roomId}`
    })
}
